--[[
FrameCache = {
	"dragon.plist",
};
--]]



scene.LoadTexture("dragon.plist");

animate= {}
animate.dragon_fly = CreataAnimate({
		frame = {
			"dragon_0_1.png",
			"dragon_1_1.png",
			"dragon_2_1.png",
			"dragon_3_1.png",
			"dragon_4_1.png",
			"dragon_5_1.png",
			"dragon_6_1.png",
			"dragon_7_1.png",
			"dragon_8_1.png",
			"dragon_9_1.png"
		},
		delay = 0.2
	});

sprite = {};
sprite.dragon_1 = CreateSprite({
		frame = "dragon_0_1.png",
		position= {300, 200},
		scale = 1.0,
		rotation = 0
	});


scene.AddSprite(sprite.dragon_1);
scene.AddSprite(sprite.dragon_2);

function OnActionFinished(sprite)
end

function OnTouch(location, sprite)
	scene.SpriteRunAction(sprite.dragon_1, {RouteTo(32, 3), MoveTo(location, 4), FinishAction(OnActionFinished)}, animate);
end

function OnSocketPacket(location, packet)

end
